<?php
/**
 * @Name: rbac.php
 * @Author: yashuai
 * @desc: 权限路由，需要登录
 */


use Illuminate\Support\Facades\Route;

Route::namespace('Rbac')->group(function () {
    Route::get('/node', 'NodeController@index');
    Route::post('/node/create', 'NodeController@create');
    Route::post('/node/update', 'NodeController@update');
    Route::post('/node/delete', 'NodeController@delete');

    Route::get('/user', 'UserController@index');
    Route::get('/user/info', 'UserController@info');
    Route::get('/user/menu-node', 'UserController@menuNode');
    Route::post('/user/create', 'UserController@create');
    Route::post('/user/update', 'UserController@update');
    Route::post('/user/delete', 'UserController@delete');
    Route::post('/user/reset-password', 'UserController@resetPassword');

    Route::get('/role', 'RoleController@index');
    Route::get('/role/map', 'RoleController@map');
    Route::post('/role/create', 'RoleController@create');
    Route::post('/role/update', 'RoleController@update');
    Route::post('/role/delete', 'RoleController@delete');
    Route::post('/role/node', 'RoleController@node');
});
